package net.shopxx.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Transient;

/**
 * 实体类 - 生产人员
 */

@Entity
public class ProStaff extends BaseEntity{

	private static final long serialVersionUID = -7519486813153844426L;
	
	private String name;// 姓名
	private String phone;// 手机
	private String code;// 用户名

	private Boolean isAccountEnabled;// 账号是否启用


	@Column(nullable = false)
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	@Column(nullable = false)
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}


	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}



	@Column(nullable = false)
	public Boolean getIsAccountEnabled() {
		return isAccountEnabled;
	}

	public void setIsAccountEnabled(Boolean isAccountEnabled) {
		this.isAccountEnabled = isAccountEnabled;
	}

	@Transient
	public boolean isEnabled() {
		return this.isAccountEnabled;
	}
}